package com.yunyi.system.mapper;

import com.yunyi.system.domain.EmrCase;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunyi.system.domain.TobeTriage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Sekiro
* @description 针对表【emr_case(会诊病例)】的数据库操作Mapper
* @createDate 2023-08-28 08:55:39
* @Entity com.yunyi.system.domain.EmrCase
*/
public interface EmrCaseMapper extends BaseMapper<EmrCase> {
    TobeTriage getTbt();

    List<EmrCase> getLastOperation();

    List<EmrCase> getTbd(@Param("status") Integer status,@Param("pathology") Integer pathology,@Param("sendHospital") String sendHospital, @Param("caseNo") String caseNo, @Param("name") String name);

    int allotCase(@Param("caseList") List<String> caseList);

    EmrCase getDiagnosticReport(@Param("id") String id);

    public List<EmrCase> getEmrCaseMsgListEmrCases(String caseIdOrName);

    /**
     * 条件查询诊断信息
     * @param emrCase2
     * @return
     */
    public List<EmrCase> selectEmrCaseList(EmrCase emrCase2);

    /**
     * 根据会诊病例ID查询具体就诊人
     * @param id
     * @return
     */
    EmrCase selectEmrCaseById(Long id);

}




